import request from '@/utils/request'

// 查询上报接口信息列表
export function listReport(query) {
  return request({
    url: '/manage/report/list',
    method: 'get',
    params: query
  })
}
export function reportRecord(query) {
  return request({
    url: '/manage/report/reportRecord',
    method: 'get',
    params: query
  })
}

// 查询上报接口信息详细
export function getReport(id) {
  return request({
    url: '/manage/report/' + id,
    method: 'get'
  })
}

// 新增上报接口信息
export function addReport(data) {
  return request({
    url: '/manage/report',
    method: 'post',
    data: data
  })
}

// 修改上报接口信息
export function updateReport(data) {
  return request({
    url: '/manage/report',
    method: 'put',
    data: data
  })
}

// 删除上报接口信息
export function delReport(id) {
  return request({
    url: '/manage/report/' + id,
    method: 'delete'
  })
}

// 新增上报接口信息
export function report(data) {
  return request({
    url: '/manage/report/enterprisesInfo',
    method: 'post',
    data: data
  })
}
